package com.vpa.graphics;

import javax.microedition.khronos.opengles.GL10;

class ImageSpot extends Spot 
{
	public ImageSpot(Texture im)
	{
		drawables = new Texture[1];
		drawables[0] = im;
		owidth = im.res.width;
		oheight = im.res.height;
		setDims(owidth, oheight, false);
		readyToLoad = true;
		type = -1;
	}
	public void draw(GL10 gl, GLView v)
	{
    	if(v.goGreen)
    		gl.glColor4f(0, 1f, 0, 1f);
    	drawables[0].draw(gl);
    	gl.glColor4f(1, 1, 1, 1);
	}
}
